<script setup lang="ts">
import {useStore} from 'vuex';

const store = useStore();
const add = () => {
    store.commit('add');
};
</script>
<template>
    <button @click="add">+</button>

    <span>detail</span></template
>
<style scoped lang="less"></style>
